.class public Lcom/estrongs/android/pop/utils/v;
.super Ljava/lang/Object;
.source "VirtualBookmarkMgr.java"


# direct methods
.method public static a(Ljava/lang/String;Ljava/lang/String;)Landroid/graphics/drawable/Drawable;
    .locals 2

    const-string v0, "all"

    .line 43
    invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    const v1, 0x7f08093f

    if-eqz v0, :cond_1

    const-string p0, "baidu"

    .line 44
    invoke-virtual {p1, p0}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result p0

    if-eqz p0, :cond_0

    .line 45
    invoke-static {}, Lcom/estrongs/android/ui/theme/b;->r()Lcom/estrongs/android/ui/theme/b;

    move-result-object p0

    const p1, 0x7f080941

    invoke-virtual {p0, p1}, Lcom/estrongs/android/ui/theme/b;->c(I)Landroid/graphics/drawable/Drawable;

    move-result-object p0

    goto/16 :goto_0

    .line 46
    :cond_0
    invoke-static {}, Lcom/estrongs/android/ui/theme/b;->r()Lcom/estrongs/android/ui/theme/b;

    move-result-object p0

    invoke-virtual {p0, v1}, Lcom/estrongs/android/ui/theme/b;->c(I)Landroid/graphics/drawable/Drawable;

    move-result-object p0

    goto/16 :goto_0

    :cond_1
    const-string p1, "apk"

    .line 47
    invoke-virtual {p0, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p1

    if-eqz p1, :cond_2

    .line 48
    invoke-static {}, Lcom/estrongs/android/ui/theme/b;->r()Lcom/estrongs/android/ui/theme/b;

    move-result-object p0

    const p1, 0x7f080940

    invoke-virtual {p0, p1}, Lcom/estrongs/android/ui/theme/b;->c(I)Landroid/graphics/drawable/Drawable;

    move-result-object p0

    goto/16 :goto_0

    :cond_2
    const-string p1, "document"

    .line 49
    invoke-virtual {p0, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p1

    if-eqz p1, :cond_3

    .line 50
    invoke-static {}, Lcom/estrongs/android/ui/theme/b;->r()Lcom/estrongs/android/ui/theme/b;

    move-result-object p0

    const p1, 0x7f080942

    invoke-virtual {p0, p1}, Lcom/estrongs/android/ui/theme/b;->c(I)Landroid/graphics/drawable/Drawable;

    move-result-object p0

    goto/16 :goto_0

    :cond_3
    const-string p1, "download"

    .line 51
    invoke-virtual {p0, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p1

    if-eqz p1, :cond_4

    .line 52
    invoke-static {}, Lcom/estrongs/android/ui/theme/b;->r()Lcom/estrongs/android/ui/theme/b;

    move-result-object p0

    const p1, 0x7f080924

    invoke-virtual {p0, p1}, Lcom/estrongs/android/ui/theme/b;->c(I)Landroid/graphics/drawable/Drawable;

    move-result-object p0

    goto/16 :goto_0

    :cond_4
    const-string p1, "facebook"

    .line 53
    invoke-virtual {p0, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p1

    if-eqz p1, :cond_5

    .line 54
    invoke-static {}, Lcom/estrongs/android/ui/theme/b;->r()Lcom/estrongs/android/ui/theme/b;

    move-result-object p0

    invoke-virtual {p0, v1}, Lcom/estrongs/android/ui/theme/b;->c(I)Landroid/graphics/drawable/Drawable;

    move-result-object p0

    goto/16 :goto_0

    :cond_5
    const-string p1, "image"

    .line 55
    invoke-virtual {p0, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p1

    if-eqz p1, :cond_6

    .line 56
    invoke-static {}, Lcom/estrongs/android/ui/theme/b;->r()Lcom/estrongs/android/ui/theme/b;

    move-result-object p0

    const p1, 0x7f080945

    invoke-virtual {p0, p1}, Lcom/estrongs/android/ui/theme/b;->c(I)Landroid/graphics/drawable/Drawable;

    move-result-object p0

    goto :goto_0

    :cond_6
    const-string p1, "music"

    .line 57
    invoke-virtual {p0, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p1

    if-eqz p1, :cond_7

    .line 58
    invoke-static {}, Lcom/estrongs/android/ui/theme/b;->r()Lcom/estrongs/android/ui/theme/b;

    move-result-object p0

    const p1, 0x7f080943

    invoke-virtual {p0, p1}, Lcom/estrongs/android/ui/theme/b;->c(I)Landroid/graphics/drawable/Drawable;

    move-result-object p0

    goto :goto_0

    :cond_7
    const-string p1, "news"

    .line 59
    invoke-virtual {p0, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p1

    if-eqz p1, :cond_8

    .line 60
    invoke-static {}, Lcom/estrongs/android/ui/theme/b;->r()Lcom/estrongs/android/ui/theme/b;

    move-result-object p0

    const p1, 0x7f080944

    invoke-virtual {p0, p1}, Lcom/estrongs/android/ui/theme/b;->c(I)Landroid/graphics/drawable/Drawable;

    move-result-object p0

    goto :goto_0

    :cond_8
    const-string p1, "video"

    .line 61
    invoke-virtual {p0, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p1

    if-eqz p1, :cond_9

    .line 62
    invoke-static {}, Lcom/estrongs/android/ui/theme/b;->r()Lcom/estrongs/android/ui/theme/b;

    move-result-object p0

    const p1, 0x7f080946

    invoke-virtual {p0, p1}, Lcom/estrongs/android/ui/theme/b;->c(I)Landroid/graphics/drawable/Drawable;

    move-result-object p0

    goto :goto_0

    :cond_9
    const-string p1, "weather"

    .line 63
    invoke-virtual {p0, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p1

    if-eqz p1, :cond_a

    .line 64
    invoke-static {}, Lcom/estrongs/android/ui/theme/b;->r()Lcom/estrongs/android/ui/theme/b;

    move-result-object p0

    const p1, 0x7f080947

    invoke-virtual {p0, p1}, Lcom/estrongs/android/ui/theme/b;->c(I)Landroid/graphics/drawable/Drawable;

    move-result-object p0

    goto :goto_0

    :cond_a
    const-string p1, "india"

    .line 65
    invoke-virtual {p0, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p0

    if-eqz p0, :cond_b

    .line 66
    invoke-static {}, Lcom/estrongs/android/ui/theme/b;->r()Lcom/estrongs/android/ui/theme/b;

    move-result-object p0

    const p1, 0x7f080932

    invoke-virtual {p0, p1}, Lcom/estrongs/android/ui/theme/b;->c(I)Landroid/graphics/drawable/Drawable;

    move-result-object p0

    goto :goto_0

    :cond_b
    const/4 p0, 0x0

    :goto_0
    return-object p0
.end method

.method public static a()Ljava/util/ArrayList;
    .locals 9
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Ljava/util/ArrayList<",
            "Lcom/estrongs/android/pop/app/shortcut/ShortcutFormat;",
            ">;"
        }
    .end annotation

    const-string v0, "all"

    const-string v1, "facebook"

    const-string v2, "india"

    const-string v3, "download"

    .line 1
    new-instance v4, Ljava/util/ArrayList;

    invoke-direct {v4}, Ljava/util/ArrayList;-><init>()V

    .line 2
    sget-boolean v5, Lcom/estrongs/android/pop/j;->n0:Z

    if-eqz v5, :cond_0

    return-object v4

    .line 3
    :cond_0
    :try_start_0
    invoke-static {}, Lcom/estrongs/android/pop/FexApplication;->n()Lcom/estrongs/android/pop/FexApplication;

    move-result-object v5

    .line 4
    invoke-static {}, Lcom/estrongs/android/pop/l;->L1()Lcom/estrongs/android/pop/l;

    move-result-object v6

    const/4 v7, 0x0

    .line 5
    sput-boolean v7, Lcom/estrongs/android/pop/utils/w;->d:Z

    .line 6
    invoke-static {}, Ljava/util/Locale;->getDefault()Ljava/util/Locale;

    move-result-object v7

    invoke-virtual {v7}, Ljava/util/Locale;->getCountry()Ljava/lang/String;

    move-result-object v7

    const-string v8, "in"

    invoke-virtual {v7, v8}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v7
    :try_end_0
    .catch Ljava/lang/NullPointerException; {:try_start_0 .. :try_end_0} :catch_0

    const-string v8, "virtualKey"

    if-eqz v7, :cond_1

    .line 7
    :try_start_1
    invoke-virtual {v6, v2}, Lcom/estrongs/android/pop/l;->b(Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_2

    .line 8
    new-instance v3, Lcom/estrongs/android/pop/app/shortcut/ShortcutFormat;

    invoke-direct {v3}, Lcom/estrongs/android/pop/app/shortcut/ShortcutFormat;-><init>()V

    const-string v7, "Quikr"

    .line 9
    iput-object v7, v3, Lcom/estrongs/android/pop/app/shortcut/ShortcutFormat;->shortcutName:Ljava/lang/String;

    const-string v7, "http://goo.gl/gTCquG"

    .line 10
    iput-object v7, v3, Lcom/estrongs/android/pop/app/shortcut/ShortcutFormat;->targetLocation:Ljava/lang/String;

    .line 11
    invoke-virtual {v3, v8, v2}, Lcom/estrongs/android/pop/app/shortcut/ShortcutFormat;->putAttribute(Ljava/lang/String;Ljava/lang/String;)V

    .line 12
    invoke-virtual {v4, v3}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    goto :goto_0

    .line 13
    :cond_1
    invoke-virtual {v6, v3}, Lcom/estrongs/android/pop/l;->b(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_2

    .line 14
    new-instance v2, Lcom/estrongs/android/pop/app/shortcut/ShortcutFormat;

    invoke-direct {v2}, Lcom/estrongs/android/pop/app/shortcut/ShortcutFormat;-><init>()V

    const v7, 0x7f110041

    .line 15
    invoke-virtual {v5, v7}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v7

    iput-object v7, v2, Lcom/estrongs/android/pop/app/shortcut/ShortcutFormat;->shortcutName:Ljava/lang/String;

    .line 16
    invoke-virtual {v6}, Lcom/estrongs/android/pop/l;->z()Ljava/lang/String;

    move-result-object v7

    iput-object v7, v2, Lcom/estrongs/android/pop/app/shortcut/ShortcutFormat;->targetLocation:Ljava/lang/String;

    .line 17
    invoke-virtual {v2, v8, v3}, Lcom/estrongs/android/pop/app/shortcut/ShortcutFormat;->putAttribute(Ljava/lang/String;Ljava/lang/String;)V

    .line 18
    invoke-virtual {v4, v2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 19
    :cond_2
    :goto_0
    invoke-static {}, Lcom/estrongs/android/pop/l;->L1()Lcom/estrongs/android/pop/l;

    move-result-object v2

    invoke-virtual {v2}, Lcom/estrongs/android/pop/l;->w()Ljava/lang/String;

    move-result-object v2

    .line 20
    invoke-static {}, Lcom/estrongs/android/pop/utils/q;->b()Z

    move-result v3

    if-nez v3, :cond_3

    .line 21
    invoke-virtual {v6, v1}, Lcom/estrongs/android/pop/l;->b(Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_3

    .line 22
    new-instance v3, Lcom/estrongs/android/pop/app/shortcut/ShortcutFormat;

    invoke-direct {v3}, Lcom/estrongs/android/pop/app/shortcut/ShortcutFormat;-><init>()V

    const v7, 0x7f110428

    .line 23
    invoke-virtual {v5, v7}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v7

    iput-object v7, v3, Lcom/estrongs/android/pop/app/shortcut/ShortcutFormat;->shortcutName:Ljava/lang/String;

    .line 24
    sget-object v7, Lcom/estrongs/android/util/m0;->a:Ljava/lang/String;

    iput-object v7, v3, Lcom/estrongs/android/pop/app/shortcut/ShortcutFormat;->targetLocation:Ljava/lang/String;

    .line 25
    invoke-virtual {v3, v8, v1}, Lcom/estrongs/android/pop/app/shortcut/ShortcutFormat;->putAttribute(Ljava/lang/String;Ljava/lang/String;)V

    .line 26
    invoke-virtual {v4, v3}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 27
    :cond_3
    invoke-static {}, Lcom/estrongs/android/pop/utils/q;->b()Z

    move-result v1

    if-eqz v1, :cond_4

    invoke-virtual {v6}, Lcom/estrongs/android/pop/l;->f()Z

    move-result v1

    if-eqz v1, :cond_4

    .line 28
    new-instance v1, Lcom/estrongs/android/pop/app/shortcut/ShortcutFormat;

    invoke-direct {v1}, Lcom/estrongs/android/pop/app/shortcut/ShortcutFormat;-><init>()V

    .line 29
    invoke-virtual {v6}, Lcom/estrongs/android/pop/l;->x()Ljava/lang/String;

    move-result-object v3

    iput-object v3, v1, Lcom/estrongs/android/pop/app/shortcut/ShortcutFormat;->shortcutName:Ljava/lang/String;

    const/4 v3, 0x0

    .line 30
    invoke-static {v5, v0, v3}, Lcom/estrongs/android/pop/utils/w;->a(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)Lcom/estrongs/android/pop/utils/w$c;

    move-result-object v3

    .line 31
    iget-object v3, v3, Lcom/estrongs/android/pop/utils/w$c;->a:Ljava/lang/String;

    iput-object v3, v1, Lcom/estrongs/android/pop/app/shortcut/ShortcutFormat;->targetLocation:Ljava/lang/String;

    const-string v3, "isSearchEngine"

    const-string v5, "true"

    .line 32
    invoke-virtual {v1, v3, v5}, Lcom/estrongs/android/pop/app/shortcut/ShortcutFormat;->putAttribute(Ljava/lang/String;Ljava/lang/String;)V

    .line 33
    invoke-virtual {v1, v8, v0}, Lcom/estrongs/android/pop/app/shortcut/ShortcutFormat;->putAttribute(Ljava/lang/String;Ljava/lang/String;)V

    const-string v0, "searchEngineKey"

    .line 34
    invoke-virtual {v1, v0, v2}, Lcom/estrongs/android/pop/app/shortcut/ShortcutFormat;->putAttribute(Ljava/lang/String;Ljava/lang/String;)V

    .line 35
    invoke-virtual {v4, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
    :try_end_1
    .catch Ljava/lang/NullPointerException; {:try_start_1 .. :try_end_1} :catch_0

    :catch_0
    :cond_4
    const/4 v0, 0x1

    .line 36
    sput-boolean v0, Lcom/estrongs/android/pop/utils/w;->d:Z

    return-object v4
.end method

.method public static a(Ljava/lang/String;)V
    .locals 3

    .line 37
    invoke-static {}, Lcom/estrongs/android/pop/FexApplication;->n()Lcom/estrongs/android/pop/FexApplication;

    .line 38
    invoke-static {}, Lcom/estrongs/android/pop/l;->L1()Lcom/estrongs/android/pop/l;

    move-result-object v0

    const-string v1, "all"

    .line 39
    invoke-virtual {p0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    const/4 v2, 0x0

    if-eqz v1, :cond_0

    .line 40
    invoke-virtual {v0, v2}, Lcom/estrongs/android/pop/l;->y(Z)V

    goto :goto_0

    .line 41
    :cond_0
    invoke-virtual {v0, p0, v2}, Lcom/estrongs/android/pop/l;->g(Ljava/lang/String;Z)V

    .line 42
    :goto_0
    invoke-static {}, Lcom/estrongs/android/util/m0;->b()V

    return-void
.end method

.method public static b(Ljava/lang/String;)Z
    .locals 2

    const/4 v0, 0x0

    if-nez p0, :cond_0

    return v0

    :cond_0
    const-string v1, "music"

    .line 1
    invoke-virtual {p0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-nez v1, :cond_1

    const-string v1, "image"

    invoke-virtual {p0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-nez v1, :cond_1

    const-string v1, "apk"

    .line 2
    invoke-virtual {p0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-nez v1, :cond_1

    const-string v1, "document"

    invoke-virtual {p0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-nez v1, :cond_1

    const-string v1, "video"

    .line 3
    invoke-virtual {p0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p0

    if-eqz p0, :cond_2

    sget-boolean p0, Lcom/estrongs/android/pop/j;->j0:Z

    if-nez p0, :cond_2

    :cond_1
    const/4 v0, 0x1

    :cond_2
    return v0
.end method
